<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="shortcut icon" href="./image/logo.jpg" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>怎么用css实现多行文本省略？</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <style>
      .demo {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        width: 200px;
        border: 1px solid #ccc;
      }
    </style>
  </head>

  <body>
    <div class="demo">
      CSS实现多行文本溢出显示省略号CSS实现多行文本溢出显示省略号CSS实现多行文本溢出显示省略号CSS实现多行文本溢出显示省略号CSS实现多行文本溢出显示省略号CSS实现多行文本溢出显示省略号
    </div>
  </body>
</html>
